package cn.tedu.csmallproducts.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 添加类别的DTO类
 *
 * @author java@tedu.cn
 * @version 0.0.1
 */
@Data
public class CategoryAddNewDTO implements Serializable {

    /**
     * 类别名称
     */
    @ApiModelProperty(value = "类别名称", required = true, example = "意大利炮")
    @NotNull(message = "必须填写相册名称")
    private String name;

    /**
     * 父级类别id，如果无父级，则为0
     */
    @ApiModelProperty(value = "父级类别", required = true, example = "11")
    @NotNull(message = "必须填写父级类别")
    private Long parentId;

    /**
     * 关键词列表，各关键词使用英文的逗号分隔
     */
    @ApiModelProperty(value = "关键词列表", required = true, example = "关键词1，关键词2")
    private String keywords;

    /**
     * 排序序号
     */
    @ApiModelProperty(value = "排序序号", required = true, example = "9")
    private Integer sort;

    /**
     * 图标图片的URL
     */
    @ApiModelProperty(value = "图标图片的URL", required = true, example = "https://qiche.png")
    private String icon;

    /**
     * 是否启用，1=启用，0=未启用
     */
    @ApiModelProperty(value = "是否启用", required = true, example = "1")
    private Integer enable;

    /**
     * 是否显示在导航栏中，1=启用，0=未启用
     */
    @ApiModelProperty(value = "是否显示在导航栏中", required = true, example = "1")
    private Integer isDisplay;

}